change cal_topk to argv format