changing weight to 1 for everything