working on search API