formatted printing fixed