read about else if and it makes sense now