update top document