fixed a direction error and moved service2 to service.