finish realloc