added recalculation of main bbox.