added content type check