bugfixing update function

collision update