added autocomplete to type restriction