added the new inferred_content_type function