implementing new weights