updating timing logic