beginning updated learning rule