removing printf messages