produces histogram