removed yet another for loop,
removed a sys.exit(), this code will be defunct soon