added trends functionnality