remove duplicate if and modified comments to less than 80 characters per line(best practice)