working craig.cxx
better phi soln