updated histogram to use doulbes for bdry