moved format number functions to utils