added pre-commit hook