add build-in prompt function