added y.levels to ldm object