change to support multiple K query