add algo in block html