changed so program will abort if input text error