'update' pretty print function w/ my old code