adding an end if comment