add delay in the example