standarize and fix snippets