brought in line with jshint errors