added option to reverse the bar rating