changed processes to all be pointers, now using malloc