running 2nd best algo