added some logic to check for positive thoughts