removed some global state in LSystem