added search functionaly