fixed bounding box computation