rewriting midic as midictrw