fix bug in and changed location of pdist path