remove logging code