forgot copy after realloc