fix lookup, insert of bintrees