On different modes of firms' cooperation