fix method declaration