improving algos