cosmetic changes and some extra bounding box functions