set all weights to values between 0 to 1