for battle js
change for #8