need to fix simplification of the STAR element. It does not work in the way it should. Need a piece of advice