removed unnecessary printf statements