logic and set item