some work on P1eda template