added methods needed for collision detection