changed from barplot to histogram