got rid of unnecessary print statement for ranges