more mods on the pi problem, starting to use a range after qualifying user input