updating format specifiers to use format method