the functional style as suggested
no need to use unique() here; these fields must be unique