cleaned up dinkum_convert