implementing basic tag search