fix get friends function