created else if statement