refactor mime type array