removed echo and added tags to print