not sure what's been done, this is for a merge
pi.cc and pic.m now agree on euclidean phi