simplify some algorithm