chnage closure type