remove unnecessary transmutes