adding machinery for stages