added < realloc case