update for sort