refactor code tu use a service instead