Else if statement corrected