still working with horizontal logic