added 3 helper functions inside getHTags()