added to markstats, fixed histogram bounds