removed debug functions