removed testing code from generator