cleaned up code, rewrote reprocess