set up memory for process