more range checking.