the algorithm is now running, but is is full of errors.