derivative and averaged