Changed to set negative weights off
merged