Removed unused variable in create closure