state characteristic of friend function