MDLD/primitive function