add log
revert algo