added active to generator