changed how output is built