added invalid cases