removed debug functionality