implemented suggestions by Alex
spell-checked