made if and else statement