formatting changes to render code more elegant