working on selected item