save every 5 sec.