removed excessive debug printing statements