added remove to pmemory