figured out a little bit more about the code