corrected checkValue not checking STRUCTURE values properly