wip - algorithm is unstable and not convergent