using peek and poke functions