edited code for dry-spell days