syntax correction for code snipets