worked on spell check

added correct function