comments added for if statement