started to implement collisions