changed structure of delays in program