removed unused printf calls