code format and comments