reverse documents