fixed syntax for format method