changed dens profile to position histogram