spellcheck
clean up logic