added the friends function