range checks