corrected the increpency between hist and ksdensity results.