implemented a very basic output function