nice working prototype of formatting