implemented relations
implemented relations
fixes