renamed _fmt to formatName