updated code convert example.