remove attributes from generator