put delays in logical order