added option to select exact number of top-k items