made if else statement