updating output and fixing