clean insert_convertion code