improves content type validation