removed printf stuff