switched helper to service pattern