cleaned up content-length version