moves print functions to single func because cleaner