removed debug printing functions