added a range variable in case we want to adjust range