remove conditional branch for Hash method lookup