remove class function