get_friend_id function added