work in progress on mincde example