fixed up for jshint