fixed template declaration