added pritty printing