correct warning on method;