trivial changes to ps_mem