reduced duplication of tbody build