added discrete inverse CMF