generalize millennium machines