print program when finish gathering