add function exclude_contents