added mkcd function