cleaning up api search
finished functionality