add new function into pid module