renamed vars to make a little more sense.