add pre-commit
fix bug
fix bug
fix if test bug
update script