fixed special characters and changed function reportNestedness