figuring out the code