added timing logic for node