add NewDist function