add functionality for working with relations