attempting to fix infinite deferral in sentence generator.py