removed weight.acc from input of Loop