added initialization to the generator