forgot to declare my template as global