changes class margins