used factory service to send data