replay function with 3 seconds time delay