modified weights and input node values