changed wetness check from constant to variable reference