code changes for lmd