updated for js autocomplete