implemented ring content-length