update functions to read bounding box