updated pre-commit hook