preserve old class math