get rid of wpb_weight variable