allow data helper to be a function