fixed mkcd()