how to define the trend