update collision detect