replaced % format operator with format method