fixing moisture check