fixing code style errors causing esclint warnings