added dealy to the example