change from milliseconds to seconds in the delay