changed n_pk_done from 10000 to 1000