implemented bounding boxes