use the sentiment method outside