gear generator working