add friend function file