latest working code for psl with sentiments