add the argument na.loose to local.matching