function flag = Check_Data_Sharing_BS(cell_idx, BS_idx, l, k, User)

%check if BS (cell_idx, BS_idx) is one of the BSs sharing with user (l,k)
%msg
flag = 0;
for row_idx = 1:size(User(l,k).data_sharing_BSs,1)
    c = User(l,k).data_sharing_BSs(row_idx,1);
    b = User(l,k).data_sharing_BSs(row_idx,2);
    
    if (c == cell_idx) && (b == BS_idx)
        flag = 1;
        return;
    end
end