functions closure in gut