Daniel W. Graham writes: > I originally put it in the last xlog statement, thanks for catching > that. I moved directly after the lookup and it returns '-1'. if lookup returns -1, then body of if statement if (!lookup( .. should not be executed at all. -- juha