manual template heritances