maybe remove the else from the else if statements. currently every second if is a else if.