please add parenthesis to last comparison and write latest comparison on a single line