update
updates output and code structure