fix comment  algorithm