added embedding methods to DM