removed some printing code