refactor prompts
formatting
refactor test