use helper function to get tags