fixed poke and peek. Variable was not initialized