animation update for smoothness