implements select state with ED