correct matching of methods