change context to access contentType.