use second instead of milliseconds