getting the trend elements and storing