fixed my stupid mixup of vertical and horizontal