moved body tag logic to a helper