consolodate text and references