fix warning undeclared delegate method