ADDED UPPER BOUND. CORRESPONDING DOTS ARE CONNECTED