refactored prompt