fixed corner glitch and parallelization organization (mostly)