not using realloc, causes problems w/ webgrader