Remove unnecessary transmute, do some formatting