more funcgtions to memoryclass again