Modified dist1d