update for collision