determines open status.