fixed approve friend function