fixed upperbound repeat problem