refactoring morph-ldp part