correct based on the comments from jshint