updated getGenerator declaration to be compatible with parent's one