explained some algorithm