working on xs_select