start implementing dist mx