fixed the conversion