added seperate search functionailty