to check the values