Design of electrical apparatus