changed save_friend method