code style
no longer needed
tolerate 1 error for approximate completion
updated helper functions