change wildcard validation method