check if position changed