updated code for 8am