added ability to do trends