testing and output complete