now finds horizontal and vertical targets separately