printf statements deleted