added bin search