calculate ignore len