updated for generator