added prompt fn