fixed indexing on dynamic generator, next: make initialization dynamic
save