finished fixing completeness test, need to rewrite in C