have it working with repositories instead of services