adding bounding box code