implemented previous mood functions