non working collision detection