code makes jslint happy now