made class get compatible with middleclass again