adding relations functions