added prompt function