shredding with parenthesis improvement