added function of buildSpellcheck