what is the main function of stator​