snippet clean up