pass master as list to template