only use the first matching record