fixed bar graph and added synonym functionality