simplify the weight_line and weight_gamma and delete weight_worm_W