make more algorithms work :)