cleanup and document trends_with_meta