Problem in distribution function