lessened memory usage, deleted extraneous output