updating output