adding method for sentiment analysis