output after making print function better