change to continous colision detection