define selectedItems to avoid lots of error popups