connected with algorithm