getting MAD about NaNs!