change demo for the algorithms