modify script to use matching fieldname