implemeted friend function