replace `Set` with `List` + `distinct` in order to get deterministic results