added comment for if statement