program runs, promptLoop searches correctly