adjusting weights