added a check with the old output to the output I made