add time to state