Improved delClass()