[new] algorithm with log system