fixing pre-commit hook