add 1-d derivatives