changed delay to 300 mili