fixed example checking to work independently of example order