added typo.
extract thunk function .