general alg changes for submission.