update tmp loess to calculate the derivatives