added broken collision detection