completefunc for mkd