removed debug printf statements