worked on alg