added p1 template