major modification.
ignore pdf files.