removed repos from controllers, using service