added top k sample