Box2d Custom collision handler

Hello
I’m using ofxBox2d
There is code:

  
  
void testApp :: box2dContactEventHandler ( const b2ContactPoint* point )  
{  
	for( int i=0; i<customParticles.size(); i++ )  
	{  
		CustomParticle& creature = customParticles[ i ];  
		for( b2Shape* s=creature.body->GetShapeList(); s; s=s->GetNext() )  
		{  
			if( point->shape1 == s) {  
                             CustomParticle& creature1 = customParticles[ i ];  
			    }  
			else if( point->shape2 == s) {  
                             CustomParticle& creature2 = customParticles[ i ];  
			    }  
		}  
	}  
  
//at this point creature1 and creature2 "was not declared in this scope"  
  
 //some work with creature1 and creature2  
  
}  

What i’m doing wrong? And what is the right way?
Thanks

solved this.