added sample
capture free vars in TCO