change type service to main.