adding bounding box drawing functions