range comparison update