reduction scripts