redo the test for num in range