style fixes in the main snippet