function to repeat extraction every 6 seconds