program chooser waits and prints