modify fore and whe snippets