add timingFunction