changed delay to 1000ms