updating the sim and comp algos