implemented 3d histos partly, now test it