made a change to prevent buffer overflow on prompts