definition trace helper