nice refactor into helper!