before update alloc