compare content length when needed