Improve a snippet