example of passing groups to template