fix method type issue