optimizing range checking now update is required