change logic for matching identifiers in master file