specify how docs should be traversed