Getting correct cell relations