conditions are met but still error