testing prompt in function