added echo statements to track progress of program