characteristic of friend function