I tried different ways but one condition fails.