work, but opening criteria is flawed