[PD] problem with templates