processor loop every 20 seconds