change peek_token signature