changed params.text to params.sourceText