using the template properly