script now loops every minute