code formatting and comments