changed memory management scheme AGAIN