cleaned bounding box code
17 blocks