add prompts to the functions and return true and false result