recursive flag for generator