created else if statements