template extracted, closure for list