reconcile implementation to be closed to Stanford's contribution