Changed place of bounding box definition