implemented bounding box.