correction to WRDays script