added getTags function