generating BBW weights in matlab done.