replace event with setTimeout 0