ed from p