applying formatting