added extra parameter for excluded words array