went through variables, still confused on pointer references though