rakuten dir logic added