added a bunch of histogram stuffz