added a better text formatter