change contraint weigth ordered