added toColor method for sentiment