update to reduction script