added formatPlular function.