fix relaations and set operations