modify memory classes