more logic for horiz. line