closure templates