added printer for console output