how to make stator automatically ?