implement continuousParenLength()