optimised bounding box