implemented borrowing basing on relations on both sides