ng from p