rewrite % notation to format()