added a couple of helper functions for the prompts