added function for prompting