added iteration to template (&& model)