changed the way we save the variables to print, more efficient