moved prompts

moved prompts outside of functions