implemented snippet length