abandoning malloc idea