work on searching API