get tags properly working