moving contains() to BoundingBox