added correct LD conversion function