added scaling to ldm.default and predict.ldm