tested the corrected algorithm on sys4 -- awesome!