set MIME type method