cleaning out code clutter from stage levels and modularizing them