working with autoselect