refactor prompt