ouputed the variables prior to if statements