substitute mrt with inv in most parts