initial working version of selecting tags