added both side seaching