modified memory management