updated weekday check