upgrade to getContentType