update Red and Blue indexes