use helper function instead of terrific append() constructs