add comments and make jshint happy