using time delay variable