fix issue with closure better example