add original code of ldd3