do not consider borders with zero size