added p and modifed header