correcting snippet formatting