add index for generator control