a bit faster, but still not fast enough for tree search