finally algo is commited