getTags method added