trying to make it faster by not looping over all sentences