added collision with sphere