removing class instances