fixed a bug; decaying previous weights