add a guard in add_friend