remove class stack method