looks like the algorithm should work!