removed redundant passing of API words to functions