removed debug checks