upgrade document