replaced format method