add histogram (untested)