changed search functionallity