added log version for sampling K+