ERROR IN ADDRESS LENGTH CALCULATION