alg. just simple.