added check to new variable

added check to new variable to see if its correct value