updated conversion script