ranges checks added