changing the model trend algorithm so it will be more accurate