switched to a function maker for the helpers