our general purpose formatter that was pulled together from different projects