move id to the last column in dd_weights_