some more code I found in the archaic mess of files relating to the final program