Make some converting general