some comments and formatting