Revert "Updated getTagItems function"

This reverts commit 11bdcd4c467b902debd3643adabf67c5e38be8ab.