simpler content length calc