new config
fix bug in weight