fixed the out of memory bug caused by the Wrangler class. Added a break statement to stop the memory from overflowing...but there are still some issues with it.