improving rules for paragraph identification