format numbers and api simplification