correct document hierarchy