modified the specifications of peek_finish and poke_finish.