debugging
parallel version no longer segfaults or infinite loops