fix method declaration to compile with clang