merge lmd in order to prevent duplicate