realloc use changed