try to make faster with setkey()