nit: else if on previous line