improving key lookup