end of round code added