improve convert