handle empty case on size k query