almost done with pcomp-dist