added more functionality to bbox and point