specification of function poke_finish