modify insert_friends.