prompt refactor