added friends functionality