add pdot in Function