changing to compare the variables