updated setkey