renamed "reset", fixed reg_write.