delay changed to 1 second