change to mem file