add some constraint and remove ab_inter_weight