some notes about coding style
fix this copy-pasted code to conform to coding standards