fix some bugs with method name