removed printf statements