quarter of the way through the code, stopped for testing