new algorithm finalize, will test tomorrow