tweak derivative method