made some progress on alg