changes to get autocomplete by prefix query