working on logdist
fixed New