fixing terminal output