vertical/horizontal special cases working