update MethodDeclare and Function api
clear