created stemming function