finishes if else statement