with template taking collection values