fix method redeclaration type error