a Improved phase lock method for ups