update the code to run every 30 minutes