added elements to generator constructors