removed call to nonexistent function
removed debug mode