finished implementing new bounding box logic