generalize variables