added functionality for boundingboxes