remvoved some debug printing