final code with modified comments