updated pre-commit script