Signature error in method definition