relation functions