fix to order conversion codes