changed template syntax to @template