revert to master
tried double derivative