moved day/night change from update