numerical derivative update