extracting closure computation